public class Draw {
    int height;

    public void drawTriangular() {
        for (int i = 1; i <= height; i++) {
            for (int j = 1; j <= i; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }

    public void drawRectangular() {
        for (int i = 1; i <= height; i++) {
            for (int j = 1; j <= 2 * height; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }

    public void drawSquare() {
        for (int i = 1; i <= height; i++) {
            for (int j = 1; j <= height; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }

    public void drawParallelogram() {
        for (int i = 1; i <= height; i++) {
            for (int j = 1; j < i; j++) {
                System.out.print(" ");
            }
            for (int k = 1; k <= 2 * height; k++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }

    public static void main(String[] args) {
        Draw draw1 = new Draw();
        draw1.height = 3;
        draw1.drawTriangular();
        System.out.println();
        draw1.drawRectangular();
        System.out.println();
        draw1.drawSquare();
        System.out.println();
        draw1.drawParallelogram();
    }
}